import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
  },
  {
    path: '/map',
    name: 'map',
    component: () => import(/* webpackChunkName: "about" */ '../views/map.vue'),
  },
  {
    path: '/detial',
    name: 'detial',
    component: () => import( '@/views/detial.vue'),
  },
  {
    path: '/order',
    name: 'order',
    component: () => import( '@/views/order.vue'),
  },
  {
    path: '/kinddetail',
    name: 'kinddetail',
    component: () => import( '@/views/kinddetail.vue'),
  },
  {
    path: '/add',
    name: 'add',
    component: () => import( '@/views/add.vue'),
  },
  {
    path: '/taobao',
    name: 'taobao',
    component: () => import( '@/views/taobao.vue'),
  },
  {
    path: '/wode',
    name: 'wode',
    component: () => import( '@/views/my.vue'),
  },
  {
    path: '/meituan',
    name: 'meituan',
    component: () => import( '@/views/meituan.vue'),
  },
  {
    path: '/elm',
    name: 'elm',
    component: () => import( '@/views/elm.vue'),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
